﻿using System;
using System.Collections.Generic;
using FrankJie.Model;
namespace FrankJie.IDAL
{
	/// <summary>
	/// 标签接口
	/// </summary>
	public interface ITag
	{
		/// <summary>
		/// 增加一个标签
		/// </summary>
		/// <param name="tagInfo">标签实体</param>
		/// <returns>返回标签ID</returns>
		int Add(TagInfo tagInfo);

        /// <summary>
        /// 增加标签所拥有的数量
        /// </summary>
        /// <param name="id">标签ID</param>
        /// <returns>返回是否成功</returns>
        bool AddCount(int id);

        /// <summary>
        /// 减少标签所拥有的数量
        /// </summary>
        /// <param name="id">标签ID</param>
        /// <returns>返回是否成功</returns>
        bool DeductCount(int id);

		/// <summary>
		/// 删除一个标签
		/// </summary>
		/// <param name="Id">标签ID</param>
		/// <returns>返回是否成功</returns>
		bool Delete(int Id);

        /// <summary>
        /// 获取标签列表
        /// </summary>
        /// <returns>返回标签集合</returns>
        List<TagInfo> GetList();
	} 
}
